/*
 * Directory.cc
 */

#include "Directory.h"
#include "Inode.h"
#include <string>
#include <iostream>
#include <sstream>

using namespace std;

Directory::Directory( Inode *in ) {
	inode = *in;
}

Directory::~Directory() {

}

int 		Directory::getInodeNr() {
	inodenr = inode.getNumber();
	return inodenr;
}

string 	Directory::getMode() {
	mode = inode.getMode();
	return mode;
}

int 		Directory::getSize() {
	size = inode.getSize();
	return size;
}

string 	Directory::getModified() {
	modified = inode.getModified();
	return modified;
}

string 	Directory::getName() {
	name = inode.getName();
	return name;
}

string 	Directory::toString() {
    stringstream stringstr;
    stringstr << "Dir[Nr=" << inodenr << ",Name=" << name;
    return stringstr.str();
}
